package graph;
import list.*;

/** A Vertex represents a node in a WUGraph; it has references to its DList, its degree,
 * and its originalVertex, which is passed in as a parameter to the constructor.
 */
public class Vertex{

	private EdgeList EList;
	private Object originalVertex;
	
	/** constructs a Vertex, takes in a vertex object and the DList that the vertex
	 * belongs to
	 */
	public Vertex(Object vertex, DList list) {
		originalVertex = vertex;
		EList = new EdgeList();
	}
	
	/** returns the object that was provided to the method addVertex()
	 */
	public Object getVertex() {
		return originalVertex;
	}
	
	
	
	/** returns the EdgeList that the Vertex references
	 */
	public EdgeList getEList() {
		return EList;
	}

}
